package com.cxps.server.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cxps.server.product.domain.ProductEntity;
import com.cxps.server.product.domain.ProductQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品持久层
 *
 * @author YouCai.Liu
 * @since 2021/10/18
 * ...
 */
@Mapper
public interface ProductMapper extends BaseMapper<ProductEntity> {

    List<ProductEntity> selectPageList(@Param("page") Page<ProductEntity> page, @Param("query") ProductQuery query);
}
